#pragma once
#include <iostream>
#include <string>
namespace StbImage {
bool getsize(unsigned char* oldData, const int oldsize, int& Width,
             int& Height);
bool resize(unsigned char* oldData, const int oldsize, int newWidth,
            int newHeight, int FillColor, std::string& newData);
bool resizepng(unsigned char* oldData, const int oldsize, int newWidth,
               int newHeight, int FillColor, std::string& newData);
bool ConvertGray(unsigned char* oldData, int oldSize, std::string& newData);
bool resize(unsigned char* inData, const int insize, int maxWidth,
            std::string& outData);
char* bmp_to_jpg(const void* bmp_data, size_t bmp_size, int* len);
}  // namespace StbImage